/*
 * @Date: 2023-03-06 13:42:55
 * @LastEditTime: 2023-03-22 12:29:17
 * @FilePath: /NLK/src/router/interface.ts
 * 介绍:
 */
import type { RouteRecordRaw } from "vue-router";
export type RouterOption = RouteRecordRaw & NavRouter & TabbarRouter;
export type MetaOption = NavMeta & TabbarMeta;
/**标准路由meta */
export interface BaseMeta {
  title?: string;
}
export interface BaseRouter {
  meta: BaseMeta;
}
export interface NavRouter {
  meta: NavMeta;
}
/**nav路由meta */
export interface NavMeta extends BaseMeta {
  navbar?: {
    showBack?: boolean;
    show?: boolean;
  };
}
export interface TabbarMeta extends BaseMeta {
  tabbar?: {
    icon: string;
    activeIcon: string;
  };
}
export interface TabbarRouter {
  meta: TabbarMeta;
}
